﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;

namespace Epona.NHibernateRepository
{
    public class SessionFactoryTypeConverter:TypeConverter
    {
        public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
        {
            SessionFactoryConfiguration.Initialize();
            return SessionFactoryConfiguration.SesssionFactory;
        }
    }
}
